from pythonds.bheap import BinaryHeap, BHeap


def test():
    test_insert()


def test_insert():
    bh = BinaryHeap()
    # bh.insert(5)
    # bh.insert(8)
    # bh.insert(3)
    # bh.insert(11)
    bh.build_heap([5, 8, 3, 11, 14, 6, 7, 23])
    # while bh.size > 0:
    #     print(bh.del_min())
    print(bh.hlist)

    bh2 = BHeap([5, 8, 3, 11, 14, 6, 7, 23])
    print(bh2.ls)
